<template>
  <div>这是home页面</div>
  <button @click="fn">跳转到about页</button>
</template>

<script setup>
import { useRouter } from "vue-router";

const router = useRouter();

const fn = () => {
  router.push("/about");
};
</script>
